package spring_root.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import spring_root.po.Person;
import spring_root.service.personSerivce;

@Service
public class personServiceimpl implements personSerivce {
	
	private static List<Person> parr = new ArrayList<Person>();
	
	private static Person person = new Person("刘健君",20,"河北昌黎","男");
	
	static {
		parr.add(new Person("张三",18,"河北昌黎","女"));
		parr.add(new Person("李四",20,"河北昌黎","女"));
		parr.add(new Person("王五",21,"河北昌黎","男"));
		parr.add(new Person("赵丽",20,"河北抚宁","男"));
	}
	
	public Person queryById(Integer id) {
		System.out.println(id);
		return this.person;
	}

	@Override
	public List<Person> queryAll() {
		
		return parr;
	}
	
	

}
